package com.pyue.eam.app.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文章收藏表
 *
 * @author lucc
 * @date 2023-06-16 14:33:41
 */
@Data
@TableName("app_article_collect")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "文章收藏表")
public class AppArticleCollectEntity extends AppBaseEntity {

	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	/**
	 * 用户ID
	 */
	@Schema(description = "用户ID")
	private Long userId;

	/**
	 * 文章ID
	 */
	@Schema(description = "文章ID")
	private Long articleId;

	/**
	 * 文章标题
	 */
	@TableField(exist = false)
	private String title;

	/**
	 * 浏览
	 */
	@TableField(exist = false)
	@Schema(description = "浏览")
	private Integer visit;

	/**
	 * 封面
	 */
	@TableField(exist = false)
	@Schema(description = "封面")
	private String image;

	/**
	 * 简介
	 */
	@TableField(exist = false)
	@Schema(description = "简介")
	private String intro;
}
